Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Problem when EXDATEs have timezones

#9

It appears that having timezones on EXDATEs is preventing them from excluding occurrences.

The Icalendar data in the spec below contains an exdate for each normal occurrence of the event, so it should have no occurrences. I verified this interpretation by importing it into ical.app.

The data came from a calendar file which Paul sent which was causing a missing_method <=> on Hash. I fixed that problem, but in the process discovered this anomaly.

  context "EXDATES with timezones bug" do
    before(:each) do
      cals = RiCal.parse_string rectify_ical <<-ENDCAL
      BEGIN:VCALENDAR
      METHOD:PUBLISH
      PRODID:-//Apple Inc.//iCal 3.0//EN
      CALSCALE:GREGORIAN
      X-WR-CALNAME:Utah Cycling
      X-WR-RELCALID:BF579011-36BF-49C6-8C7D-E96F03DE8055
      VERSION:2.0
      X-WR-TIMEZONE:US/Mountain
      BEGIN:VTIMEZONE
      TZID:US/Mountain
      BEGIN:DAYLIGHT
      TZOFFSETFROM:-0700
      TZOFFSETTO:-0600
      DTSTART:20070311T020000
      RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
      TZNAME:MDT
      END:DAYLIGHT
      BEGIN:STANDARD
      TZOFFSETFROM:-0600
      TZOFFSETTO:-0700
      DTSTART:20071104T020000
      RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
      TZNAME:MST
      END:STANDARD
      END:VTIMEZONE
      BEGIN:VEVENT
      SEQUENCE:11
      TRANSP:OPAQUE
      UID:15208112-E0FA-4A7C-954C-CFDF19D1B0E7
      DTSTART;TZID=US/Mountain:20090114T163000
      DTSTAMP:20090107T024340Z
      SUMMARY:Wild Rose XC/Skate Training Series
      EXDATE;TZID=US/Mountain:20090114T163000
      EXDATE;TZID=US/Mountain:20090128T163000
      EXDATE;TZID=US/Mountain:20090121T163000
      EXDATE;TZID=US/Mountain:20090211T163000
      EXDATE;TZID=US/Mountain:20090204T163000
      EXDATE;TZID=US/Mountain:20090218T163000
      CREATED:20090107T024012Z
      DTEND;TZID=US/Mountain:20090114T180000
      LOCATION:Mountain Dell Golf Course
      RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20090219T065959Z
      END:VEVENT
      END:VCALENDAR
      ENDCAL
      @event = cals.first.events.first
    end
    
    it "should have no occurrences" do
      rputs @event.exdate_property
      @event.occurrences.length.should == 0
    end
  end

The initial assumption is that the time zones are causing the problem, I am currently investigating.

Reported by Rick DeNatale · May 22nd, 2009 @ 12:04 PM

State: resolved
Milestone: 0.0.11
Assigned to: Rick DeNatale Rick DeNatale

Activity

  1. Rick DeNatale
    Rick DeNatale
    • State changed from new to resolved
    • Milestone set to 0.0.11

    May 23rd, 2009 @ 06:28 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.